Optimal. Leaf size=164 \[ -\frac {(B c-A d) (e x)^{1+m} \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} F_1\left (\frac {1+m}{n};-p,1;\frac {1+m+n}{n};-\frac {b x^n}{a},-\frac {d x^n}{c}\right )}{c d e (1+m)}+\frac {B (e x)^{1+m} \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{n},-p;\frac {1+m+n}{n};-\frac {b x^n}{a}\right )}{d e (1+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 164, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {611, 372, 371,
525, 524} \begin {gather*} \frac {B (e x)^{m+1} \left (a+b x^n\right )^p \left (\frac {b x^n}{a}+1\right )^{-p} \, _2F_1\left (\frac {m+1}{n},-p;\frac {m+n+1}{n};-\frac {b x^n}{a}\right )}{d e (m+1)}-\frac {(e x)^{m+1} (B c-A d) \left (a+b x^n\right )^p \left (\frac {b x^n}{a}+1\right )^{-p} F_1\left (\frac {m+1}{n};-p,1;\frac {m+n+1}{n};-\frac {b x^n}{a},-\frac {d x^n}{c}\right )}{c d e (m+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 372
Rule 524
Rule 525
Rule 611
Rubi steps
\begin {align*} \int \frac {(e x)^m \left (a+b x^n\right )^p \left (A+B x^n\right )}{c+d x^n} \, dx &=\int \left (\frac {B (e x)^m \left (a+b x^n\right )^p}{d}+\frac {(-B c+A d) (e x)^m \left (a+b x^n\right )^p}{d \left (c+d x^n\right )}\right ) \, dx\\ &=\frac {B \int (e x)^m \left (a+b x^n\right )^p \, dx}{d}+\frac {(-B c+A d) \int \frac {(e x)^m \left (a+b x^n\right )^p}{c+d x^n} \, dx}{d}\\ &=\frac {\left (B \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p}\right ) \int (e x)^m \left (1+\frac {b x^n}{a}\right )^p \, dx}{d}+\frac {\left ((-B c+A d) \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p}\right ) \int \frac {(e x)^m \left (1+\frac {b x^n}{a}\right )^p}{c+d x^n} \, dx}{d}\\ &=-\frac {(B c-A d) (e x)^{1+m} \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} F_1\left (\frac {1+m}{n};-p,1;\frac {1+m+n}{n};-\frac {b x^n}{a},-\frac {d x^n}{c}\right )}{c d e (1+m)}+\frac {B (e x)^{1+m} \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{n},-p;\frac {1+m+n}{n};-\frac {b x^n}{a}\right )}{d e (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.20, size = 138, normalized size = 0.84 \begin {gather*} \frac {x (e x)^m \left (a+b x^n\right )^p \left (1+\frac {b x^n}{a}\right )^{-p} \left (A (1+m+n) F_1\left (\frac {1+m}{n};-p,1;\frac {1+m+n}{n};-\frac {b x^n}{a},-\frac {d x^n}{c}\right )+B (1+m) x^n F_1\left (\frac {1+m+n}{n};-p,1;\frac {1+m+2 n}{n};-\frac {b x^n}{a},-\frac {d x^n}{c}\right )\right )}{c (1+m) (1+m+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.15, size = 0, normalized size = 0.00 \[\int \frac {\left (e x \right )^{m} \left (a +b \,x^{n}\right )^{p} \left (A +B \,x^{n}\right )}{c +d \,x^{n}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (e\,x\right )}^m\,\left (A+B\,x^n\right )\,{\left (a+b\,x^n\right )}^p}{c+d\,x^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________